<script setup>
import Load from "./load.vue"
import {ref,reactive} from "vue"
import logout from '../api/logout'
import { useRouter } from "vue-router";
import { useUserStore } from "../stores/user";

const userInform=useUserStore();
const use = useRouter() ;
const loading = ref(true)
userInform.clear();
localStorage.clear();
logout()
setTimeout(() => {  
    loading.value = false
    use.push("/")
    }, 1000)

</script>

<template>
    <div v-if="loading"><load/></div>
</template>